import request from '@/utils/request';
import da from "element-ui/src/locale/lang/da";

//获取企业列表
export function getCompanyList(data) {
  return request({
    url: '/pc/system/app_enterprise/5_page_find_all',
    method: 'post',
    json:data
  })
}
// 获取选取方式列表
export function getPicMehodList() {
  return request({
    url: '/renovation/pick/method/list',
    method: 'post'
  })
}
// 获取历史数据
export function getUnitSelectionData (projectId) {
  let url = `/renovation/prophaseSurvey/enterprise/detail?projectId=${projectId}`;

  return request({
    url,
    method: 'post',
  })
}

//提交数据
export function submitFormData(data) {
  return request({
    url: '/renovation/prophaseSurvey/enterprise/save',
    method: 'post',
    json: data
  })
}
